package cn.cht.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "lagou-service-user", fallback = UserFeignFallback.class, path = "/api/user")
public interface UserFeignClient {

    @GetMapping(value = "/info/{token}", consumes = "application/json")
    String info(@PathVariable("token") String token);

}
